package com.ymttest.database.sqlwapper.sqrefund;

import java.util.List;

import com.ymt.database.SqlManager;
import com.ymttest.database.model.sqrefund.RefundGoodsExpressInfo;

public class RefundGoodsExpressInfoWrapper {
	
	SqlManager manager;

	public RefundGoodsExpressInfoWrapper() {
		manager = new SqlManager("sqrefund");
	}

	@SuppressWarnings("unchecked")
	public RefundGoodsExpressInfo selectByPrimaryKey(Long id) {

		RefundGoodsExpressInfo refundBill = null;
		List<RefundGoodsExpressInfo> result = manager
				.getSelectResults(
						"com.ymttest.database.mapping.sqrefund.RefundGoodsExpressInfoMapper.selectByPrimaryKey",
						id);
		manager.commit();

		if (result.size() > 0) {
			refundBill = result.get(0);
		}

		return refundBill;
	}
	
	public static void main(String[] args) {
		
		RefundGoodsExpressInfoWrapper test = new RefundGoodsExpressInfoWrapper();
		
		System.out.println(test.selectByPrimaryKey(1L));
	}
}
